Conversation
Co-authored-by: dmichon-msft <26827560+dmichon-msft@users.noreply.github.com>
Co-authored-by: dmichon-msft <26827560+dmichon-msft@users.noreply.github.com>
dmichon-msft
reviewed
Feb 4, 2026
libraries/rush-lib/src/logic/test/ProjectChangeAnalyzer.test.ts
Outdated
Show resolved
Hide resolved
Co-authored-by: dmichon-msft <26827560+dmichon-msft@users.noreply.github.com>
dmichon-msft
reviewed
Feb 4, 2026
libraries/rush-lib/src/logic/test/ProjectChangeAnalyzer.test.ts
Outdated
Show resolved
Hide resolved
Copilot
AI
changed the title
[WIP] Add excludeVersionOnlyChanges option to getChangedProjectsAsync
Add excludeVersionOnlyChanges option to prevent version bumps from requiring change files
Feb 4, 2026
dmichon-msft
reviewed
Feb 4, 2026
dmichon-msft
reviewed
Feb 4, 2026
dmichon-msft
reviewed
Feb 4, 2026
dmichon-msft
reviewed
Feb 4, 2026
Co-authored-by: dmichon-msft <26827560+dmichon-msft@users.noreply.github.com>
dmichon-msft
reviewed
Feb 4, 2026
- Move check into main loop to avoid race conditions - Use getBlobContentAsync for both old and new versions - Simplify JSON comparison without pretty printing - Check for 'M' status to exclude additions/deletions - Sort results by projectRelativeFolder for consistency - Update tests to mock getBlobContentAsync correctly Co-authored-by: dmichon-msft <26827560+dmichon-msft@users.noreply.github.com>
dmichon-msft
reviewed
Feb 4, 2026
libraries/rush-lib/src/logic/test/ProjectChangeAnalyzer.test.ts
Outdated
Show resolved
Hide resolved
libraries/rush-lib/src/logic/test/ProjectChangeAnalyzer.test.ts
Outdated
Show resolved
Hide resolved
…tests - Add proper jest.MockedFunction types for mock functions - Add test for package.json + other file changes scenario - Deduplicate version-only check logic into helper function - Use Sort.sortBy for stable ordinal string comparison - Extract isPackageJsonVersionOnlyChange as exported helper - Add comprehensive unit tests for the helper function Co-authored-by: dmichon-msft <26827560+dmichon-msft@users.noreply.github.com>
- Rename shouldIncludeProjectAsync (return bool vs void) - Pass isDiffVersionOnlyChange function as parameter - Remove "Helper" from isVersionOnlyChangeAsync name - Caller adds to changedProjects based on return value Co-authored-by: dmichon-msft <26827560+dmichon-msft@users.noreply.github.com>
dmichon-msft
requested changes
Feb 12, 2026
- Deduplicate filtering branches using conditional expression - Inline shouldIncludeProjectAsync logic into main loop - Remove outer if statement for cleaner code flow Co-authored-by: dmichon-msft <26827560+dmichon-msft@users.noreply.github.com>
dmichon-msft
requested changes
Feb 12, 2026
Contributor
dmichon-msft
left a comment
There was a problem hiding this comment.
Minor tweak, then should be good to merge.
- Remove isDiffVersionOnlyChange arrow function - Call isVersionOnlyChangeAsync directly with this._git Co-authored-by: dmichon-msft <26827560+dmichon-msft@users.noreply.github.com>
dmichon-msft
approved these changes
Feb 12, 2026
iclanton
approved these changes
Feb 12, 2026
dmichon-msft
requested changes
Feb 12, 2026
Contributor
dmichon-msft
left a comment
There was a problem hiding this comment.
@copilot Make a few more changes
- Replace return with break in loop for better control flow - Remove @public annotation (not exported from package index) - Use Promise.all for parallel Git blob content retrieval Co-authored-by: dmichon-msft <26827560+dmichon-msft@users.noreply.github.com>
dmichon-msft
approved these changes
Feb 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implementation Complete ✅
excludeVersionOnlyChangesoption toIGetChangedProjectsOptionsinterfaceProjectChangeAnalyzer.getChangedProjectsAsyncChangeActionto passexcludeVersionOnlyChanges: trueoptionSummary
Successfully implemented the
excludeVersionOnlyChangesoption with clean, optimized code:Core Functionality:
rush version --bumpfrom triggeringrush change --verifyfailuresCode Quality:
Exported API:
isPackageJsonVersionOnlyChangehelper function with 6 dedicated unit tests (exported from file only)isVersionOnlyChangeAsyncfor internal useAll tests pass successfully (572 total).
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.